package com.iflytek.model;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 订单商品关系表
 * @author h_t
 * @since 2023-09-23
 */

@Data
@TableName("t_order_goods")
@ApiModel(value="OrderGoods对象")
public class OrderGoods implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "序号,新增不传",example="1")
    private Long id;

    @TableField(value = "order_id")
    @ApiModelProperty(value = "订单id",example="1")
    private Long orderId;

    @TableField(value = "goods_id")
    @ApiModelProperty(value = "商品id",example="1")
    private Long goodsId;

    @TableField(value = "count")
    @ApiModelProperty(value = "数量",example="1")
    private Integer count;

}
